import superagent from 'superagent'
import cheerio from 'cheerio'
interface CrowllerObj {
  secret?: String
  url?: String
}

class Crowller {
  private secret = 'x3b174jsx'
  private url = `http://www.dell-lee.com/typescript/demo.html?secret=${this.secret}`
  private htmlStr = ''
  async getHtml() {
    const response = await superagent.get(this.url)
    console.log(response.text)
    this.htmlStr = response.text
  }

  constructor() {
    this.getHtml()
  }
}
const crowller = new Crowller()
